// 提示
import { Message, Notification } from 'element-ui'

export function message_tip(msg, type, dur) {
    Message({
        message: msg,
        duration: dur ? dur : 2000,
        type: type,
        center: false,
        showClose: true
    })
}

export function notify_tip(title, msg, type, dur) {
    Notification({
        title: title,
        message: msg,
        type: type,
        duration: dur ? dur : 2000
    })
}
